var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({ 
    comment:String,
    cateId:mongoose.Schema.ObjectId,
    userId:mongoose.Schema.ObjectId
 });
schema.plugin(mongoosePaginate);

module.exports = mongoose.model('Comment',  schema,'comment'); 